<h1>Listing brands</h1>

<p>
	<%= link_to 'New brand', new_brand_path %>
</p>

<table>
  <tr>
    <th>Name</th>
	<th>Action</th>
  </tr>

<% for brand in @brands %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%=h brand.name %></td>
    <td>
    	<%= link_to image_tag("edit.gif"), edit_brand_path(brand) %>
		<%= link_to image_tag("delete.gif"), brand, :confirm => 'Are you sure?', :method => :delete %>
	</td>
  </tr>
<% end %>
</table>